﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace project2
{   
    public class RectangleFactory : shapefactory
    {
        public shape createshape()
        {
            Random r1 = new Random(Guid.NewGuid().GetHashCode());
            int n1 = r1.Next(100);
            int n2 = r1.Next(100);
            return new Rectangle(n1,n2);
        }
    }
    public class SquareFactory : shapefactory
    {
        public shape createshape()
        {
            Random r1 = new Random(Guid.NewGuid().GetHashCode());
            int n1 = r1.Next(100);
            return new Square(n1);
        }
    }
    public class CircleFactory : shapefactory
    {
        public shape createshape()
        {
            Random r1 = new Random(Guid.NewGuid().GetHashCode());
            int n1 = r1.Next(100);
            return new Circle(n1);
        }
    }
}
